package com.hl.service.serviceImpl;

import com.hl.domain.Usermark;
import com.hl.domain.userAndzixun;
import com.hl.mapper.UsermarkMapper;
import com.hl.service.UsermarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: UsermarkServiceimpl
 * Package: com.sfzy.service.impl
 * Description:
 *
 * @Author 杜浩宇
 * @Create 2024/3/31 21:17
 * @Version 1.0
 */
@Service
public class UsermarkServiceimpl implements UsermarkService {
    @Autowired
    private UsermarkMapper usermarkMapper;


    @Override
    public Usermark selectByPrimaryKey(Long id) {
        return usermarkMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<userAndzixun> findAll() {
        return usermarkMapper.findAll();
    }

    @Override
    public int insert(Usermark record) {
        return usermarkMapper.insert2(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Usermark record) {
        return usermarkMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return usermarkMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Usermark> findlike(String name) {
        return usermarkMapper.findlike(name);
    }

    @Override
    public int insertSelective(Usermark record) {
        return usermarkMapper.insertSelective(record);
    }


}
